﻿using ERP.Framework.Components.SortingHelper;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using ERP.Framework.Components.Utilities.EnumHelper;
using System.Collections;

namespace ERP.Framework.Components.Testing.EnumHelper.Test
{
    /// <summary>
    /// Test class for ComparingManager
    /// </summary>
    [TestClass()]
    public class LocalizerTest
    {
        /// <summary>
        /// Test method for CompareTypes
        /// </summary>
        [TestMethod()]
        public void GetLocalizedStringTest()
        {
            Assert.IsNotNull(Localizer.GetLocalizedString(LocalizerTestEnum.value1));
            Assert.AreEqual(Localizer.GetLocalizedString(LocalizerTestEnum.value1), "Val 1");
        }

        /// <summary>
        /// Gets the localized string extendor test.
        /// </summary>
        [TestMethod()]
        public void GetLocalizedStringExtendorTest()
        {
            Assert.IsNotNull(LocalizerTestEnum.value1.Translate());
            Assert.AreEqual(LocalizerTestEnum.value1.Translate(), "Val 1");
        }
    }
}
